package com.admission.model;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.admission.listener.AuditableEntity;
@Entity
@Table(name="special_article")
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class SpecialArticle extends AuditableEntity{
	public static final String TAGTRUE="1";
	public static final String TAGFALSE="0";
	public static final String TOPFALSE="0";
	public static final String TOPTRUE="1";
	private String title; //标题
	private String content;//内容
	private Special special;
	private String tag;//豆腐块标志
	private String hightop;//置顶标志
	
	
	public String getTitle() {
		return title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Lob
	@Basic(fetch=FetchType.LAZY)
	public String getContent() {
		return content;
	}
	
	public void setContent(String content) {
		this.content = content;
	}
	@ManyToOne
	@JoinColumn(name="special_id")
	public Special getSpecial() {
		return special;
	}

	public void setSpecial(Special special) {
		this.special = special;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public String getHightop() {
		return hightop;
	}

	public void setHightop(String hightop) {
		this.hightop = hightop;
	}



}
